﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LibUpdate
{
    /// <summary>
    /// 版本信息
    /// </summary>
    public class Version
    {
        
        private string _Directory;

        private LJType _Repeat;
        private string _Remark;
        private UpdateGoal _UpdateGoal;
        private FileList _FileList;
        private System.Version _versionnum=new System.Version("0.0.0.0");
        private DateTime _ReleaseDate;

     

        /// <summary>
        /// 更新目录
        /// </summary>
        public string Directory
        {
            get
            {
                return _Directory;
            }
            set
            {
                _Directory = value;
            }
        }

        /// <summary>
        /// 是否重启计算机
        /// </summary>
        public LJType Repeat
        {
            get
            {
                return _Repeat;
            }
            set
            {
                _Repeat = value;
            }
        }

        /// <summary>
        /// 版本备注，更新日志
        /// </summary>
        public string Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                _Remark = value;
            }
        }

        /// <summary>
        /// 更新目标类型
        /// </summary>
        public UpdateGoal UpdateGoal
        {
            get
            {
                return _UpdateGoal;
            }
            set
            {
                _UpdateGoal = value;
            }
        }

        /// <summary>
        /// 升级文件列表
        /// </summary>
        public FileList FileList
        {
            get
            {
                return _FileList;
            }
            set
            {
                _FileList = value;
            }
        }

        /// <summary>
        /// 字符串信息
        /// </summary>
        public System.Version VersionNum
        {
            get
            {
                return _versionnum;
            }
            set
            {
                _versionnum = value;
            }
        }

        /// <summary>
        /// 版本发布日期
        /// </summary>
        public DateTime ReleaseDate
        {
            get
            {
                return _ReleaseDate;
            }
            set
            {
                _ReleaseDate = value;
            }
        }
    }
}
